package com.atguigu.gmall.weball.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LoginController {


    //去登录页
    @GetMapping("/login.html")
    public String login(Model model,@RequestParam(value = "originUrl",
            defaultValue = "http://gmall.com") String originUrl){

        //上一页的地址；
        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
